﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace NETL.Engine.Util
{
	public class FileUtil
	{

		public static string BaseDirectory
		{
			get { return AppDomain.CurrentDomain.BaseDirectory; }
		}

		public static string AbsolutePath(string path)
		{
			if (path.StartsWith(@"\\") || path.Contains(@":\"))
			{
				return path;
			}

			return Path.Combine(BaseDirectory, path);
		}

	}
}
